layui.use('laytpl', function(){
    let laytpl = layui.laytpl;
    $.ajax({
        type: "post",
        url : "backstage.action?methodName=homeInformation",
        dataType : "json",
        success : function (res) {
            var data = { //数据
                all : res.all,
                finish : res.finish,
                nbspBL : res.nbspBL,
                userNumber : res.userNumber,
                info : res.info
            };
            laytpl("{{ d.all }}").render(data,function (html) {
                $("#All-the-books").html(html)
            });
            laytpl("{{ d.finish }}").render(data,function (html) {
                $("#After-completing-this-book").html(html)
            });
            laytpl("{{ d.nbspBL }}").render(data,function (html) {
                $("#Not-yet-finished").html(html);
            });
            laytpl("{{ d.userNumber }}").render(data,function (html) {
                $("#number-of-users").html(html)
            });


        }
    });
});
